//    Copyright (C) Kherty.  All rights reserved.
using System;
using System.Collections.Generic;
using OpenLS.Core.Serialization;

namespace OpenLS.Chart
{
    internal sealed class CannonicalMultiLevelStringReference : MultiLevelStringReference
    {
        private string _formula;
        private MultiLvlStrData MultiLevelStringData;
        internal const string xmlName = @"multiLvlStrRef";
        public override IEnumerable<object> Values
        {
            get { throw new NotImplementedException(); }
        }

        protected override void ReadXmlCore(ReadContext context)
        {
            using (ReadContext c = context.Read(xmlName))
            {
                _formula = c.ReadElementString("f");
                this.MultiLevelStringData = c.ReadOptionalElement<MultiLvlStrData>("multiLvlStrCache");
                Extension = c.ReadOptionalElement<ExtensionElement>("extLst");

            }

        }

        public override string Formula
        {
            get
            {
                return _formula;
            }
        }

    }
}